package mya.mes.mdc.share.vo;

import mya.mes.mdc.share.mqttread.MqttMsgProcessor;

import java.util.List;

public class MdcOptions {
    public String EXCEL_FILE_NAME = "D:\\mya\\project210\\mes-mdc-parent\\mes-mdc-module\\src\\main\\resources\\TAG_WCS.xlsx";
    public static String EXCEL_ROOT_FOLDER = "D:\\mdc\\excel\\tag\\";
    /**
     * 需要subscribe的Topic
     */
    public List<String> SUBSCRIBE_TOPIC_LIST = null;
    /**
     * 采用默认的AI/DI/ST，作为subscribe的topic<br>
     * 如果MDC_MQTT_DEFAULT_TOPIC = false ，并且topicListToSubscribe = null,则报错
     *
     * @see MdcMqttDefaultTopic
     */
    public boolean SUBSCRIBE_DEFAULT_TOPIC = true;
    public String MQTT_IP = "localhost";
    public int MQTT_PORT = 1883;
    public String MQTT_CLIENT_ID = "MDC_MQTT_CLIENT_ID";
    /**
     * 如果为false,并且 MQTT_RECEIVE_PROCESSOR == null,报错
     */
    public boolean MQTT_RECEIVE_DEFAULT_PROCESSOR = false;
    /**
     * 处理接收的Mqtt消息
     */
    public MqttMsgProcessor MQTT_RECEIVE_PROCESSOR = null;
    /**
     * 报警消息发送到微信
     */
    public boolean ALARM_SENT_TO_WEIXIN = false;
    public String WEIXIN_MQTT_IP = "localhost";
    public int WEIXIN_MQTT_PORT = 1883;
    public String WEIXIN_MQTT_CLIENT_ID = "MDC_WEIXIN_CLIENT_ID";
    public String WEIXIN_MQTT_TOPIC = "ALARM/MICHELIN";
    /**
     * 报警超过时长(单位毫秒)，发微信人员:1分钟
     */
    public long TIME_WAIT_TO_PERSON_DEFAULT = 1000L * 60L;
    /**
     * 报警超过时长(单位毫秒)，发管理人员：30分钟
     */
    public long TIME_WAIT_TO_MANAGER_DEFAULT = 1000L * 60L * 30L;
    /**
     * PLC数据保存到MongoDb数据库
     */
    public boolean PLC_DATA_SAVE_TO_MONGODB = true;
    public String MONGO_DB_HOST = "localhost";
    public String MONGO_DB_NAME = "MDC_DATA";
    public int MONGO_DB_PORT = 27017;
    /**
     * 车间
     */
    public String SHOP = "OVEN";
    /**
     * 区域
     */
    public String AREA = "LINE3";
    /**
     * 小区域
     */
    public String SECTION = "LINE3";
    /**
     * 具体的一个点或是设备
     */
    public String POINT = "LINE3";
}
